package com.trust.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.trust.annotation.NotNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author ccc
 * @since 2023-11-24 17:09:30
 */
@Data
@TableName("purchase_detail")
public class PurchaseDetail {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("数量")
    @NotNull(name = "数量")
    private BigDecimal num;

    @ApiModelProperty("采购单id")
    private Integer purchaseId;

    @ApiModelProperty("采购项")
    @NotNull(name = "采购项")
    private Integer materialId;

    @ApiModelProperty("采购项名称")
    @NotNull(name = "采购项名称")
    private String materialName;

    @ApiModelProperty("供应方")
    @NotNull(name = "供应方")
    private Integer supplier;

    @ApiModelProperty("供应方名称")
    @NotNull(name = "供应方名称")
    private String supplierName;

    @ApiModelProperty("类型")
    @NotNull(name = "类型")
    private Integer type;

    @ApiModelProperty("类型名称")
    @NotNull(name = "类型名称")
    private String typeName;

    @ApiModelProperty("计量单位")
    @NotNull(name = "计量单位")
    private String unit;

    @ApiModelProperty("计量单位id")
    private Integer unitId;

    @ApiModelProperty("入库批号")
    @NotNull(name = "入库批号")
    private String inCode;

    @ApiModelProperty("单据")
    private String pic;


}